import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import router from './router/index'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as Icons from '@element-plus/icons-vue'; 
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate';
import pinia from '@/stores/index'
const app = createApp(App)
// 全局注册所有图标
for (const [iconName, iconComponent] of Object.entries(Icons)) {
    app.component(iconName, iconComponent);
}
pinia.use(piniaPluginPersistedstate);
app.use(pinia);
app.use(router).use(ElementPlus).mount('#app')
